package com.letoken.platform.pub.enums;

import java.util.HashMap;
import java.util.Map;

public enum OtcTypeEnum {

    BUY(1, "买入"),
    SELL(2, "卖出"),
    ;

    private final Integer type;
    private final String desc;

    OtcTypeEnum(Integer type, String desc) {
        this.type = type;
        this.desc = desc;
    }


    public final static Map<Integer, String> typeDescMap;

    static {
        typeDescMap = new HashMap<>();
        for (OtcTypeEnum value : OtcTypeEnum.values()) {
            typeDescMap.put(value.type, value.desc);
        }
    }

}
